<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏制作</title>
</head>
<style>
    .nav {
        background-color: skyblue;
        height: 50px;
        line-height: 50px;
    }

    li {
        list-style: none;
        display: inline-block;
    }
    a {
        padding: 10px 10px;
        text-decoration: none;
    }
    a:hover {
        border-bottom: 1px solid red;
    }
</style>
<body>
<div class="nav">
    <ul>
        <li>
            <a href="#">aaa</a>
        </li>
        <li>
            <a href="#">导航页</a>
        </li>
        <li>
            <a href="#">啊实打实打算</a>
        </li>
        <li>
            <a href="#">aaa</a>
        </li>
        <li>
            <a href="#">aaa</a>
        </li>
    </ul>
</div>
</body>
</html>
